import dayjs from "dayjs";
export const menInfoColumns = [
  {
    prop: "name",
    label: "姓名",
    width: "40px",
  },
  {
    prop: "idCard",
    label: "身份证",
    width: "60px",
  },
  {
    prop: "sex",
    label: "性别",
    width: "40px",
  },

  {
    prop: "birthday",
    label: "出生年月",
    width: "80px",
    render(row: any) {
      return h(
        "div",
        {
          style: {
            color: "#666",
            fontSize: "12px",
          },
        },
        dayjs(row.date).format("YYYY-MM-DD HH:mm")
      );
    },
  },
  {
    prop: "minZ",
    label: "民族",
    width: "40px",
  },
  {
    prop: "hkType",
    label: "户口性质",
    width: "80px",
  },
  {
    prop: "zzMm",
    label: "政治面貌",
    width: "80px",
  },
  {
    prop: "mobile",
    label: "联系电话",
    width: "80px",
  },
  {
    prop: "tel",
    label: "固定电话",
    width: "80px",
  },
  {
    prop: "hkAddress",
    label: "户口所在地",
    width: "100px",
  },
  {
    prop: "txAddress",
    label: "通讯地址",
    width: "80px",
  },
  {
    prop: "email",
    label: "email",
    width: "50px",
  },
  {
    prop: "qq",
    label: "qq",
    width: "20px",
  },
  {
    prop: "wx",
    label: "微信",
    width: "40px",
  },
  {
    prop: "makerStaffId",
    label: "操作员ID",
    width: "80px",
  },
  {
    prop: "makerStaffTruename",
    label: "操作员姓名",
    width: "100px",
  },
  {
    prop: "education",
    label: "学历",
    width: "40px",
  },
  {
    prop: "school",
    label: "毕业学院",
    width: "80px",
  },

  {
    prop: "finishSchoolTime",
    label: "毕业时间",
    width: "80px",
    render(row: any) {
      return h(
        "div",
        {
          style: {
            color: "#666",
            fontSize: "12px",
          },
        },
        dayjs(row.date).format("YYYY-MM-DD HH:mm")
      );
    },
  },
  {
    prop: "major",
    label: "专业",
    width: "40px",
  },
  {
    prop: "jobTitle",
    label: "职称",
    width: "40px",
  },

  {
    prop: "jobTitleTime",
    label: "职称评定时间",
    width: "120px",
    render(row: any) {
      return h(
        "div",
        {
          style: {
            color: "#666",
            fontSize: "12px",
          },
        },
        dayjs(row.date).format("YYYY-MM-DD HH:mm")
      );
    },
  },
  {
    prop: "mateName",
    label: "配偶姓名",
    width: "80px",
  },
  {
    prop: "mateIdCard",
    label: "配偶身份证",
    width: "100px",
  },

  {
    prop: "mateBirthday",
    label: "配偶出生日期",
    width: "120px",
    render(row: any) {
      return h(
        "div",
        {
          style: {
            color: "#666",
            fontSize: "12px",
          },
        },
        dayjs(row.date).format("YYYY-MM-DD HH:mm")
      );
    },
  },
];
// 在职员工
export const inServiceColumns = [
  {
    prop: "name",
    label: "姓名",
    width: "80px",
  },
  {
    prop: "mobile",
    label: "联系电话",
    width: "120px",
  },
  {
    prop: "idCard",
    label: "身份证",
    width: "180px",
  },
  {
    prop: "codeNum",
    label: "员工编号",
    width: "120px",
  },
  {
    prop: "sexDesc",
    label: "性别",
    width: "70px",
  },
  {
    prop: "contractStartTime",
    label: "合同起始日期",
    width: "110px",
  },
  {
    prop: "contractEndTime",
    label: "合同截止日期",
    width: "110px",
  },
  {
    prop: "jobTitle",
    label: "岗位",
    width: "80px",
  },
  {
    prop: "hkAddress",
    label: "户口所在地",
    width: "140px",
  },
  {
    prop: "hkTypeDesc",
    label: "户口性质",
    width: "100px",
  },
  {
    prop: "txAddress",
    label: "通讯地址",
    width: "140px",
  },

  {
    prop: "tel",
    label: "固定电话",
    width: "140px",
  },
  {
    prop: "qq",
    label: "qq",
    width: "100px",
  },
  {
    prop: "email",
    label: "电子邮箱",
    width: "120px",
  },
];
// 离职员工
export const resignateColumns = [
  {
    prop: "name",
    label: "姓名",
    width: "80px",
  },
  {
    prop: "mobile",
    label: "联系电话",
    width: "120px",
  },
  {
    prop: "idCard",
    label: "身份证",
    width: "180px",
  },
  {
    prop: "codeNum",
    label: "员工编号",
    width: "120px",
  },
  {
    prop: "sexDesc",
    label: "性别",
    width: "70px",
  },
  {
    prop: "contractStartTime",
    label: "合同起始日期",
    width: "110px",
  },
  {
    prop: "contractEndTime",
    label: "合同截止日期",
    width: "110px",
  },
  {
    prop: "jobTitle",
    label: "岗位",
    width: "80px",
  },
  {
    prop: "hkAddress",
    label: "户口所在地",
    width: "140px",
  },
  {
    prop: "hkTypeDesc",
    label: "户口性质",
    width: "100px",
  },
  {
    prop: "txAddress",
    label: "通讯地址",
    width: "140px",
  },

  {
    prop: "tel",
    label: "固定电话",
    width: "140px",
  },
  {
    prop: "qq",
    label: "qq",
    width: "100px",
  },
  {
    prop: "email",
    label: "电子邮箱",
    width: "120px",
  },
  {
    prop: "resignateTime",
    label: "离职日期",
    width: "110px",
  },
  {
    prop: "resignateReson",
    label: "离职原因",
    width: "160px",
  },
  {
    prop: "economyCompen",
    label: "经济补偿金",
    width: "120px",
  },
  {
    prop: "fundStop",
    label: "公积金停缴时间",
    width: "140px",
  },
  {
    prop: "securityStop",
    label: "社保停缴时间",
    width: "120px",
  },
  {
    prop: "medicineStop",
    label: "医疗停缴时间",
    width: "120px",
  },
  {
    prop: "disabilyStop",
    label: "残保金停缴时间",
    width: "140px",
  },
  {
    prop: "commerStop",
    label: "商业保险停缴时间",
    width: "140px",
  },
];
